package com.icngor.db;

import java.sql.*;


public class ConnectDB {
	private static Connection  conn = null ;
	public static Connection getConnetcion(){
		try {
		  	//数据库查询
		  	//表名：test 
				Class.forName("com.mysql.jdbc.Driver");
				conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test?user=root&password=123456&useUnicode=true&characterEncoding=UTF8");
			} catch (Exception e) {
				e.printStackTrace();
			}
	return conn;
	}
}
